package com.bbva.gptf.back.dominio;

import java.util.List;

import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "TGPT037_PARAMETRO", schema = "DBSGPT")
@RooDbManaged(automaticallyDelete = true)
public class Tgpt037Parametro {
	public static List<Tgpt037Parametro> obtenerCveLiquidacion(
			final String cdClave) {
		final String qlString = "FROM Tgpt037Parametro parametro WHERE parametro.cdClave like :cdClave ";
		return entityManager().createQuery(qlString, Tgpt037Parametro.class)
				.setParameter("cdClave", cdClave).getResultList();
	}
}
